#ifndef _SHELL_ONESELF_BEAN_H_
#define _SHELL_ONESELF_BEAN_H_

#include "Beans.h"
#include "Message.h"
#include <vector>
#include "FightBuff.h"
using namespace std;
class Oneself : public Bean
{
	public:
	Oneself();
	~Oneself();
	void reset();
	Oneself* clone();
	//挑战者id
	int64 challengerId;
	//当前状态0普通，1死亡
	int8 status;
	//释放的技能id
	int32 skillId;
	//挑战者buff信息

	vector<FightBuff*> fightBuffs;
	//当前气血
	int32 life;
	//当前魔法
	int32 mana;
	
	bool read_from(ByteBuf& buf);
	bool write_to(ByteBuf& buf);
};

#endif
